//
//  HBLaunchGuideViewController.m
//  HBLibary_Example
//
//  Created by Rambo on 2018/11/3.
//  Copyright © 2018年 Rambo. All rights reserved.
//

#import "HBLaunchGuideViewController.h"
#import <HBLibary/HBLibary.h>
#import "HBLaunchGuideView.h"

@interface HBLaunchGuideViewController ()

@end

@implementation HBLaunchGuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:@"引导图" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(launchGuide) forControlEvents:UIControlEventTouchUpInside];
    CGSize size = [button sizeThatFits:CGSizeZero];
    button.frame = CGRectMake(0, 0, size.width, size.height);
    button.center = self.view.center;
    [self.view addSubview:button];
}

- (void)launchGuide{
    [HBLaunchGuideView guideViewWithStartButtonTitle:@"立即体验" images:^NSArray<NSString *> *{
        return @[@"guide_1", @"guide_2"];
    } complete:^{
        
    }];
}

@end
